Skip to content

Commit

Permalink
Fix duplicated settings in db and structs
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed May 9, 2024
1 parent f1fb0fb commit c8caa98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions modules/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,9 @@ async def connect():
"browser": f'INTEGER DEFAULT {Browser.get(0).hash}',
"cell_image_ratio": f'REAL DEFAULT 3.0',
"check_notifs": f'INTEGER DEFAULT {int(True)}',
"compact_timeline": f'INTEGER DEFAULT {int(False)}',
"confirm_on_remove": f'INTEGER DEFAULT {int(True)}',
"copy_urls_as_bbcode": f'INTEGER DEFAULT {int(False)}',
"compact_timeline": f'INTEGER DEFAULT {int(False)}',
"display_tab": f'INTEGER DEFAULT NULL',
"datestamp_format": f'TEXT DEFAULT "%d/%m/%Y"',
"default_exe_dir": f'TEXT DEFAULT "{{}}"',
"default_tab_is_new": f'INTEGER DEFAULT {int(False)}',
Expand All @@ -176,10 +175,9 @@ async def connect():
"filter_all_tabs": f'INTEGER DEFAULT {int(False)}',
"fit_images": f'INTEGER DEFAULT {int(False)}',
"grid_columns": f'INTEGER DEFAULT 3',
"hidden_timeline_events": f'TEXT DEFAULT "[]"',
"hide_empty_tabs": f'INTEGER DEFAULT {int(False)}',
"highlight_tags": f'INTEGER DEFAULT {int(True)}',
"hidden_timeline_events": f'TEXT DEFAULT "[]"',
"independent_tab_views": f'INTEGER DEFAULT {int(False)}',
"ignore_semaphore_timeouts": f'INTEGER DEFAULT {int(False)}',
"independent_tab_views": f'INTEGER DEFAULT {int(False)}',
"interface_scaling": f'REAL DEFAULT 1.0',
Expand Down
6 changes: 2 additions & 4 deletions modules/structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,9 @@ class Settings:
browser_private : bool
cell_image_ratio : float
check_notifs : bool
compact_timeline : bool
confirm_on_remove : bool
copy_urls_as_bbcode : bool
compact_timeline : bool
display_tab : Tab.get
datestamp_format : str
default_exe_dir : dict[Os, str]
default_tab_is_new : bool
Expand All @@ -691,10 +690,9 @@ class Settings:
filter_all_tabs : bool
fit_images : bool
grid_columns : int
hidden_timeline_events : list[TimelineEventType]
hide_empty_tabs : bool
highlight_tags : bool
hidden_timeline_events : list[TimelineEventType]
independent_tab_views : bool
ignore_semaphore_timeouts : bool
independent_tab_views : bool
interface_scaling : float
Expand Down

0 comments on commit c8caa98

Please sign in to comment.