Oops - remove hardcoded path and use self.url, one too many ctrl-zs when testing :(

This commit is contained in:
2024-06-30 18:07:02 +10:00
parent 46eb87bc31
commit 0895bc5983

View File

@@ -116,7 +116,7 @@ class States(PA):
self.path_type = 'Bin' self.path_type = 'Bin'
elif 'search' in self.url: elif 'search' in self.url:
# okay if we are a search, but came from a view then get last_search_state form prefs and use it # okay if we are a search, but came from a view then get last_search_state form prefs and use it
m=re.match( '.*search/(.+)$', 'search/AI:dad' ) m=re.match( '.*search/(.+)$', self.url )
if m == None: if m == None:
SetFELog( message=f"ERROR: DDP messed up, seems we are processing a search, but cant see the search term - is this even possible?" ) SetFELog( message=f"ERROR: DDP messed up, seems we are processing a search, but cant see the search term - is this even possible?" )
return return