mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 15:37:17 +02:00
Fix some docstrings
This commit is contained in:
parent
1c6ae9058f
commit
41715a56c0
1 changed files with 4 additions and 6 deletions
|
|
@ -44,9 +44,6 @@ class DatabaseBackupScript(DefaultScript):
|
|||
def backup_postgres(self, db_name, db_user, output_file_path):
|
||||
"""
|
||||
Run `pg_dump` on the postgreSQL database and save the output.
|
||||
|
||||
Returns:
|
||||
str: Success message
|
||||
"""
|
||||
|
||||
output_file_path += ".sql"
|
||||
|
|
@ -60,9 +57,6 @@ class DatabaseBackupScript(DefaultScript):
|
|||
def backup_sqlite3(self, db_name, output_file_path):
|
||||
"""
|
||||
Copy the sqlite3 db.
|
||||
|
||||
Returns:
|
||||
str: Success message
|
||||
"""
|
||||
|
||||
output_file_path += ".db3"
|
||||
|
|
@ -107,6 +101,10 @@ class CmdBackup(MuxCommand):
|
|||
locks = "cmd:pperm(Developer)"
|
||||
|
||||
def get_latest_backup(self):
|
||||
"""
|
||||
Returns:
|
||||
str: Name of the most recent backup
|
||||
"""
|
||||
try:
|
||||
files = os.listdir(BACKUP_FOLDER)
|
||||
paths = [os.path.join(BACKUP_FOLDER, basename) for basename in files]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue