Compare commits
2 Commits
844ce1bfd5
...
e7a579e168
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7a579e168 | ||
|
|
b26000205b |
@ -55,7 +55,9 @@ class Recipe(models.Model):
|
|||||||
difficulty = 0
|
difficulty = 0
|
||||||
else:
|
else:
|
||||||
difficulty = 0
|
difficulty = 0
|
||||||
recipe = cls.objects.create(name=name, recipe_type=recipe_type, rate=rate, difficulty=difficulty)
|
recipe = cls.objects.create(
|
||||||
|
name=name, recipe_type=recipe_type, rate=rate, difficulty=difficulty, status=const.RECIPE_STATUS_ACTIVE
|
||||||
|
)
|
||||||
return recipe
|
return recipe
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
@ -78,6 +78,6 @@ def send_email(file_name):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
file_name = './backup/bitwarden-%s.tar.gz' % localtime.strftime('%Y-%m-%d')
|
file_name = '/root/develop/vaultwarden/backup/bitwarden-%s.tar.gz' % localtime.strftime('%Y-%m-%d')
|
||||||
if make_targz(file_name, '/root/develop/vaultwarden/vw-data'):
|
if make_targz(file_name, '/root/develop/vaultwarden/vw-data'):
|
||||||
send_email(file_name)
|
send_email(file_name)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user