mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-10 20:09:00 -06:00
fixed /time
This commit is contained in:
@@ -51,7 +51,7 @@ def time():
|
|||||||
if lengths: lengths = lengths.split(',')
|
if lengths: lengths = lengths.split(',')
|
||||||
strings = request.args.get('strings')
|
strings = request.args.get('strings')
|
||||||
if strings: strings = strings.split(',')
|
if strings: strings = strings.split(',')
|
||||||
if len(lengths or []) + 1 != len(strings or []):
|
if (len(lengths or []) + len(strings or []) > 0) and (len(lengths or []) + 1 != len(strings or [])):
|
||||||
return f'error: lengths ({len(lengths or [])}) and strings ({len(strings or [])}) arrays must be same length to process properly'
|
return f'error: lengths ({len(lengths or [])}) and strings ({len(strings or [])}) arrays must be same length to process properly'
|
||||||
if lengths: lengths = list(map(int, lengths))
|
if lengths: lengths = list(map(int, lengths))
|
||||||
reverse = request.args.get('reverse')
|
reverse = request.args.get('reverse')
|
||||||
|
|||||||
Reference in New Issue
Block a user