Skip to content

Commit

Permalink
Fix file extension getter.
Browse files Browse the repository at this point in the history
  • Loading branch information
phgross committed Nov 27, 2024
1 parent a771115 commit 5a7dc8b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions opengever/exportng/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from plone.dexterity.utils import iterSchemata
from zope.schema import getFields
import logging
import os.path


logger = logging.getLogger('opengever.exportng')
Expand Down Expand Up @@ -62,9 +61,7 @@ def get_filedata(obj, attrname):


def get_file_extension(obj, attrname):
value = getattr(obj, attrname)
if value is not None:
return os.path.splitext(value.filename)[-1][1:]
return obj.get_file_extension()


def userid_to_email(obj, attrname):
Expand Down

0 comments on commit 5a7dc8b

Please sign in to comment.