Skip to content

Commit

Permalink
fix bug, these issues were resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel Kluin committed Jul 9, 2023
1 parent b80c36c commit 03f18c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions tagger/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def on_tag_search_filter_change(
def on_ui_tabs():
# If checkboxes misbehave you have to adapt the default.json preset

# FIXME: sliders misbehave: do not always pass the right value
# FIXME: Textbox does not always pass the right value
# FIXME: on exlusion tab the tag click does not work in the percentages box

with gr.Blocks(analytics_enabled=False) as tagger_interface:
with gr.Row().style(equal_height=False):
with gr.Column(variant='panel'):
Expand Down
4 changes: 0 additions & 4 deletions tagger/uiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ def apply_filters(cls, data) -> Set[str]:

if fi_key != '':
cls.query[fi_key] = (data[0], index)
# TODO: try unsetting fi_key in in_db

@classmethod
def finalize_batch(cls, count: int) -> ItRetTP:
Expand All @@ -447,9 +446,6 @@ def finalize_batch(cls, count: int) -> ItRetTP:
for i, val in map(get_i_wt, lst):
if i not in cls.in_db:
continue
if ent in cls.in_db[i][3+index]:
raise ValueError(f'ent {ent} already in db: {val} '
f'vs {cls.in_db[i][3+index][ent]}')
cls.in_db[i][3+index][ent] = val

# process the retrieved from db and add them to the stats
Expand Down

0 comments on commit 03f18c2

Please sign in to comment.