mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
is_template_database_current: Open file in write mode.
This commit is contained in:
@@ -85,9 +85,9 @@ def _check_hash(target_hash_file, **options):
|
||||
else:
|
||||
source_hash_content = None
|
||||
|
||||
with open(source_hash_file, 'a+') as f:
|
||||
f.truncate(0)
|
||||
with open(source_hash_file, 'w') as f:
|
||||
f.write(target_hash_content)
|
||||
|
||||
return source_hash_content == target_hash_content
|
||||
|
||||
def is_template_database_current(
|
||||
|
||||
Reference in New Issue
Block a user