Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @staticmethod
- def create_attachments(api, type=None, user_id=None):
- photo_count = 6
- attachments = ''
- if type != None and user_id != None:
- if type == 'video':
- for i in range(1, photo_count):
- attachments += MainView.get_video(api) + ','
- attachments += MainView.get_video(api)
- else:
- for i in range(1, photo_count):
- attachments += MainView.get_photo(api, type, user_id) + ','
- attachments += MainView.get_photo(api, type)
- else:
- for i in range(1, photo_count):
- attachments += MainView.get_photo(api) + ','
- attachments += MainView.get_video(api)
- print(attachments)
- return attachments
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement