Skip to content

Commit

Permalink
Fixed seeding_time upgrade using wrong datatype (#8311)
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink authored Dec 5, 2024
2 parents 1b48255 + 391ce42 commit 7b8821c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tribler/tribler_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class TriblerConfig(TypedDict):
saveas=str(Path("~/Downloads").expanduser()),
seeding_mode="forever",
seeding_ratio=2.0,
seeding_time=60,
seeding_time=60.0,
channel_download=False,
add_download_to_channel=False)
),
Expand Down
2 changes: 1 addition & 1 deletion src/tribler/upgrade_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _import_7_14_settings(src: str, dst: TriblerConfigManager) -> None:
_copy_if_exists(old, "download_defaults/saveas", dst, "libtorrent/download_defaults/saveas", str)
_copy_if_exists(old, "download_defaults/seeding_mode", dst, "libtorrent/download_defaults/seeding_mode", str)
_copy_if_exists(old, "download_defaults/seeding_ratio", dst, "libtorrent/download_defaults/seeding_ratio", float)
_copy_if_exists(old, "download_defaults/seeding_time", dst, "libtorrent/download_defaults/seeding_time", int)
_copy_if_exists(old, "download_defaults/seeding_time", dst, "libtorrent/download_defaults/seeding_time", float)
_copy_if_exists(old, "download_defaults/channel_download",
dst, "libtorrent/download_defaults/channel_download", bool)
_copy_if_exists(old, "download_defaults/add_download_to_channel",
Expand Down

0 comments on commit 7b8821c

Please sign in to comment.