vxzvzx
This commit is contained in:
parent
3d8c4e474c
commit
4d2755137e
1 changed files with 7 additions and 14 deletions
|
@ -175,20 +175,13 @@ def api_comment(v):
|
|||
file=request.files["file"]
|
||||
if file.content_type.startswith('image/'):
|
||||
body += f"\n\n})"
|
||||
if file and request.headers.get("cf-ipcountry") != "T1":
|
||||
if file.content_type.startswith('image/'):
|
||||
body += f"\n\n})"
|
||||
print(v.admin_level)
|
||||
if v.admin_level == 3:
|
||||
print(parent_post.id)
|
||||
if parent_post.id == 48:
|
||||
if parent_post.id == 37696:
|
||||
filename = 'files/assets/images/Drama/sidebar/' + str(len(listdir('files/assets/images/Drama/sidebar'))+1) + '.webp'
|
||||
print('sex')
|
||||
text = process_image(file.stream, filename, 400)
|
||||
print(text)
|
||||
elif parent_post.id == 49:
|
||||
elif parent_post.id == 37697:
|
||||
filename = 'files/assets/images/Drama/sidebar/' + str(len(listdir('files/assets/images/Drama/banners'))+1) + '.webp'
|
||||
process_image(file.stream, filename, 400)
|
||||
process_image(file.stream, filename)
|
||||
elif file.content_type.startswith('video/'):
|
||||
file.save("video.mp4")
|
||||
with open("video.mp4", 'rb') as f:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue