forked from rDrama/rDrama
fds
parent
eafc895724
commit
dd94e3ea84
|
@ -231,7 +231,7 @@ def api_comment(v):
|
||||||
li = os.listdir('files/assets/images/rDrama/sidebar')
|
li = os.listdir('files/assets/images/rDrama/sidebar')
|
||||||
li = [int(x.split('.webp')[0]) for x in li]
|
li = [int(x.split('.webp')[0]) for x in li]
|
||||||
li = sorted(li)
|
li = sorted(li)
|
||||||
num = li[[-1]] + 1
|
num = li[-1] + 1
|
||||||
print(num)
|
print(num)
|
||||||
filename = f'files/assets/images/rDrama/sidebar/{num}.webp'
|
filename = f'files/assets/images/rDrama/sidebar/{num}.webp'
|
||||||
copyfile(oldname, filename)
|
copyfile(oldname, filename)
|
||||||
|
|
Loading…
Reference in New Issue