mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 06:37:29 +00:00
Changed formatter to use any order: tag
This commit is contained in:
parent
801ee2be71
commit
17b8ccb895
1 changed files with 29 additions and 29 deletions
|
@ -1,11 +1,11 @@
|
||||||
def tostring(i, *, random=False):
|
def tostring(i, *, order=None):
|
||||||
o = ''
|
o = ''
|
||||||
if i:
|
if i:
|
||||||
for v in i:
|
for v in i:
|
||||||
o += v + ' '
|
o += v + ' '
|
||||||
o = o[:-1]
|
o = o[:-1]
|
||||||
elif random is True:
|
elif order:
|
||||||
o += 'order:random'
|
o += order
|
||||||
else:
|
else:
|
||||||
o = ' '
|
o = ' '
|
||||||
return o
|
return o
|
||||||
|
|
Loading…
Reference in a new issue