mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Changed tostring to better format tag output
This commit is contained in:
parent
a99b9a9626
commit
e5fa7c35a6
1 changed files with 7 additions and 3 deletions
|
@ -1,9 +1,13 @@
|
||||||
def tostring(i):
|
def tostring(i, *, random=False):
|
||||||
o = ' '
|
o = ''
|
||||||
if i:
|
if i:
|
||||||
for v in i:
|
for v in i:
|
||||||
o += v + ' '
|
o += v + ' '
|
||||||
o = o[1:-1]
|
o = o[:-1]
|
||||||
|
elif random is True:
|
||||||
|
o += 'order:random'
|
||||||
|
else:
|
||||||
|
o = ' '
|
||||||
return o
|
return o
|
||||||
|
|
||||||
def tostring_commas(i):
|
def tostring_commas(i):
|
||||||
|
|
Loading…
Reference in a new issue