mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-09 08:05:13 +02:00
Fix flake8 issues
This commit is contained in:
@ -186,11 +186,11 @@ def format_time_spent(time_spent):
|
||||
|
||||
def convert_value(value):
|
||||
""" Convert date/time data type to known fixed format string """
|
||||
if type(value) == datetime:
|
||||
if type(value) is datetime:
|
||||
return value.strftime(CUSTOMFIELD_DATETIME_FORMAT)
|
||||
elif type(value) == date:
|
||||
elif type(value) is date:
|
||||
return value.strftime(CUSTOMFIELD_DATE_FORMAT)
|
||||
elif type(value) == time:
|
||||
elif type(value) is time:
|
||||
return value.strftime(CUSTOMFIELD_TIME_FORMAT)
|
||||
else:
|
||||
return value
|
||||
|
Reference in New Issue
Block a user