Skip to content

Commit

Permalink
add grailer column to drop_table
Browse files Browse the repository at this point in the history
  • Loading branch information
oskros committed Oct 25, 2020
1 parent 2560d4b commit 410f632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabs/archive_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def drop_table(self, drops):
drop_table_fr = tkd.Frame(self.tabcontrol)
self.tabcontrol.add(drop_table_fr, text='Drop table')

cols = ["Run", "Item name", "Extra input", "Real time", "TC", "QLVL", "Item Class"]
cols = ["Run", "Item name", "Extra input", "Real time", "TC", "QLVL", "Item Class", "Grailer"]
tree_frame = tkd.Frame(drop_table_fr)
btn_frame2 = tkd.Frame(drop_table_fr)
btn_frame2.pack(side=tk.BOTTOM)
Expand All @@ -256,7 +256,7 @@ def drop_table(self, drops):
tree_frame.pack(side=tk.TOP, fill=tk.BOTH, expand=True)

tree['columns'] = cols
widths = [35, 190, 140, 120, 35, 35, 100]
widths = [35, 190, 140, 120, 35, 35, 100, 47]
for i, col in enumerate(cols):
tree.column(col, stretch=tk.NO, minwidth=0, width=widths[i])
if col in ['Run', 'TC', 'QLVL']:
Expand Down
2 changes: 2 additions & 0 deletions tabs/drops.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def add_drop(self):
if drop['item_name'] is not None:
for i, item in enumerate(self.main_frame.grail_tab.grail):
if item['Item'] == drop['item_name']:
drop['Grailer'] = 'False'
if item.get('Found', False) is False:
if self.main_frame.auto_upload_herokuapp:
resp = self.main_frame.grail_tab.upload_to_herokuapp(
Expand All @@ -43,6 +44,7 @@ def add_drop(self):
if resp is not None:
self.main_frame.grail_tab.update_grail_from_index(i)
drop['input'] = '(*) ' + drop['input']
drop['Grailer'] = 'True'

drop['TC'] = item.get('TC', '')
drop['QLVL'] = item.get('QLVL', '')
Expand Down

0 comments on commit 410f632

Please sign in to comment.