Skip to content

Commit

Permalink
Adding the extra bugfixes found in #91.
Browse files Browse the repository at this point in the history
  • Loading branch information
dihm committed Dec 3, 2021
1 parent fa9eedb commit 915cc1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lyse/__main__.py
Expand Up @@ -1606,6 +1606,8 @@ def add_files(self, filepaths, new_row_data, done=False):
# Update the Qt model:
for filepath in to_add:
self.update_row(filepath, dataframe_already_updated=True)

app.filebox.set_add_shots_progress(None, None, None)


@inmain_decorator()
Expand Down Expand Up @@ -2298,7 +2300,7 @@ def changed_since(filepath, time):

filepaths = df["filepath"].tolist()
changetime_cache = os.path.getmtime(file)
need_updating = np.where(map(lambda x: changed_since(x, changetime_cache), filepaths))[0]
need_updating = np.where(list(map(lambda x: changed_since(x, changetime_cache), filepaths)))[0]
need_updating = np.sort(need_updating)[::-1] # sort in descending order to not remove the wrong items with pop

# Reload the files where changes where made since exporting
Expand Down

0 comments on commit 915cc1c

Please sign in to comment.