Skip to content

Commit

Permalink
vendor will now save copyright dets updates
Browse files Browse the repository at this point in the history
  • Loading branch information
frimpongopoku committed Oct 13, 2023
1 parent cdfd7ad commit f8ad1ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/api/store/vendor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from _main_.utils.footage.FootageConstants import FootageConstants
from _main_.utils.footage.spy import Spy
from api.store.common import make_media_info
from api.store.common import get_media_info, make_media_info
from api.tests.common import RESET, makeUserUpload
from api.utils.filter_functions import get_vendor_filter_params
from database.models import Vendor, UserProfile, Media, Community
Expand Down Expand Up @@ -191,6 +191,12 @@ def update_vendor(self, context: Context, args, user_submitted) -> Tuple[dict, M
else:
media = Media.objects.filter(id = image[0]).first()
vendor.logo = media

if vendor.image:
old_image_info, can_save_info = get_media_info(vendor.logo)
if can_save_info:
vendor.image.user_upload.info.update({**old_image_info,**image_info})
vendor.image.user_upload.save()


if onboarding_contact_email:
Expand Down

0 comments on commit f8ad1ee

Please sign in to comment.