mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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:
|
else:
|
||||||
source_hash_content = None
|
source_hash_content = None
|
||||||
|
|
||||||
with open(source_hash_file, 'a+') as f:
|
with open(source_hash_file, 'w') as f:
|
||||||
f.truncate(0)
|
|
||||||
f.write(target_hash_content)
|
f.write(target_hash_content)
|
||||||
|
|
||||||
return source_hash_content == target_hash_content
|
return source_hash_content == target_hash_content
|
||||||
|
|
||||||
def is_template_database_current(
|
def is_template_database_current(
|
||||||
|
|||||||
Reference in New Issue
Block a user