Fixed #2. Comics are now sorted by series, then issue. Might needs tested if issue number contains or or other non-integer values. Git issue can be reopened if needed
This commit is contained in:
parent
2c7895561b
commit
2b19398465
@ -101,7 +101,7 @@ def fromdir(root_url, url, content_base_path, content_relative_path):
|
|||||||
|
|
||||||
if not "search" in c.url:
|
if not "search" in c.url:
|
||||||
onlyfiles = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))]
|
onlyfiles = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))]
|
||||||
#print(onlyfiles)
|
onlyfiles.sort()
|
||||||
for filename in onlyfiles:
|
for filename in onlyfiles:
|
||||||
link = Link(
|
link = Link(
|
||||||
href=quote(f"/content/{content_relative_path}/{filename}"),
|
href=quote(f"/content/{content_relative_path}/{filename}"),
|
||||||
@ -166,7 +166,7 @@ def fromdir(root_url, url, content_base_path, content_relative_path):
|
|||||||
query = query + j + " like '%" + k + "%' "
|
query = query + j + " like '%" + k + "%' "
|
||||||
if first:
|
if first:
|
||||||
first = False
|
first = False
|
||||||
query = query + ";"
|
query = query + " order by series asc, cast(issue as unsigned) asc;"
|
||||||
print("----> " + query)
|
print("----> " + query)
|
||||||
|
|
||||||
sql = query
|
sql = query
|
||||||
|
Loading…
Reference in New Issue
Block a user