Skip to content

Commit

Permalink
Text_length fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimaHoarder committed Nov 22, 2020
1 parent a2ca20d commit fcbea61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions classes/make_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def fix(config={}):
for key2, value2 in value.items():
for key3, settings in value2.items():
if key3 == "settings":
settings["text_length"] = int(settings["text_length"])
re = settings.pop("download_paths", None)
if re:
settings["download_directories"] = re
Expand Down
2 changes: 1 addition & 1 deletion helpers/main_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def reformat(prepared_format, unformatted):
date = prepared_format.date
text = prepared_format.text
value = "Free"
maximum_length = int(prepared_format.maximum_length)
maximum_length = prepared_format.maximum_length
post_id = "" if post_id is None else str(post_id)
media_id = "" if media_id is None else str(media_id)
extra_count = 0
Expand Down

0 comments on commit fcbea61

Please sign in to comment.