mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
fixes
This commit is contained in:
@@ -885,10 +885,9 @@ class DBRomsHandler(DBBaseHandler):
|
||||
func.lower(Rom.name).regexp_replace(STRIP_ARTICLES_REGEX, "", "i")
|
||||
)
|
||||
|
||||
if isinstance(order_by_attr.type, (String, Text)):
|
||||
order_by_attr = order_by_attr.regexp_replace(
|
||||
r"(\d+)", r"00000000000\1", "g"
|
||||
).regexp_replace(r"0*(\d{12})", r"\1", "g")
|
||||
order_by_attr = order_by_attr.regexp_replace(
|
||||
r"(\d+)", r"00000000000\1", "g"
|
||||
).regexp_replace(r"0*(\d{12})", r"\1", "g")
|
||||
|
||||
# Get the row number and first letter for each item
|
||||
subquery = (
|
||||
|
||||
Reference in New Issue
Block a user