diff --git a/files.py b/files.py index efe360d..2da8aa5 100644 --- a/files.py +++ b/files.py @@ -589,7 +589,7 @@ def view_list(): # this occurs when we went from the last image on a page (with how_many on # it) and it just happened to also be the last in the DB... if not entries: - SetFELog( message="DDP: DONT think this can happen anymore", log_level="error", job=None, persistent=True, cant_close=True ) + SetFELog( message="DDP: DONT think this can happen anymore", level="danger", job=None, persistent=True, cant_close=True ) # undo the skip by how_many and getentries again OPT.offset -= int(OPT.how_many) @@ -677,7 +677,7 @@ def view(id): eids=eids.rstrip(",") # jic, sometimes we trip this, and rather than show broken pages / destroy if id not in eids: - SetFELog( message=f"ERROR: viewing an id, but its not in eids OPT={OPT}, id={id}, eids={eids}", log_level="error", persistent=True, cant_close=True) + SetFELog( message=f"ERROR: viewing an id, but its not in eids OPT={OPT}, id={id}, eids={eids}", level="danger", persistent=True, cant_close=True) msg="Sorry, viewing data is confused, cannot view this image now" if os.environ['ENV'] == "production": msg += "Clearing out all states. This means browser back buttons will not work, please start a new tab and try again" @@ -785,7 +785,7 @@ def _jinja2_filter_parentpath(path): def get_existing_paths(dt): dir_ft=FileType.query.filter(FileType.name=='Directory').first() dirs_arr=[] - for delta in range(-7, 8): + for delta in range(-14, 15): try: new_dtime=datetime.strptime(dt, "%Y%m%d") + timedelta(days=delta) except: