Parcourir la source

Added function to delete old temporary backup files when user downloads backup.

version-14
Anand Doshi il y a 14 ans
Parent
révision
97a08b58fb
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      cgi-bin/webnotes/utils/backups.py

+ 2
- 1
cgi-bin/webnotes/utils/backups.py Voir le fichier

@@ -112,8 +112,9 @@ def get_backup():
"""
#if verbose: print webnotes.conn.cur_db_name + " " + webnotes.defs.db_password
odb = BackupGenerator(webnotes.conn.cur_db_name, webnotes.conn.cur_db_name,\
webnotes.defs.db_password)
webnotes.defs.db_password)
odb.get_backup()
delete_temp_backups()
webnotes.msgprint("""A download link to your backup will be emailed \
to you shortly.""")



Chargement…
Annuler
Enregistrer