Support for empty descriptions in Syncer
Signed-off-by: Georg <georg@lysergic.dev>
This commit is contained in:
parent
6204a4b5dd
commit
a76e1b9d35
@ -52,6 +52,9 @@ description_local = file_content.replace('\n', '')
|
||||
print(f"Description (Local): {description_local}")
|
||||
if description_gitea == description_local:
|
||||
print("Matches, nothing to change.")
|
||||
elif not description_gitea:
|
||||
print("Empty - Writing placeholder.")
|
||||
Path(file_path).write_text('Untitled / Work in Progress.')
|
||||
else:
|
||||
print("Does not match, replacing local file.")
|
||||
Path(file_path).write_text(description_gitea)
|
||||
|
Loading…
x
Reference in New Issue
Block a user