Compare commits

..

No commits in common. "e7a579e168992b8d3fa32f4645a952968c2dc2b5" and "844ce1bfd585f50608134abbae25def6a212664c" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -55,9 +55,7 @@ class Recipe(models.Model):
difficulty = 0
else:
difficulty = 0
recipe = cls.objects.create(
name=name, recipe_type=recipe_type, rate=rate, difficulty=difficulty, status=const.RECIPE_STATUS_ACTIVE
)
recipe = cls.objects.create(name=name, recipe_type=recipe_type, rate=rate, difficulty=difficulty)
return recipe
@property

View File

@ -78,6 +78,6 @@ def send_email(file_name):
if __name__ == '__main__':
file_name = '/root/develop/vaultwarden/backup/bitwarden-%s.tar.gz' % localtime.strftime('%Y-%m-%d')
file_name = './backup/bitwarden-%s.tar.gz' % localtime.strftime('%Y-%m-%d')
if make_targz(file_name, '/root/develop/vaultwarden/vw-data'):
send_email(file_name)