Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dchhabda committed Apr 18, 2023
1 parent 8faf13a commit 072f37c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pybossa/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@

from bs4 import BeautifulSoup

from six import string_types

misaka = Misaka()
TP_COMPONENT_TAGS = ["text-input", "dropdown-input", "radio-group-input",
"checkbox-input", "multi-select-input", "input-text-area"]
Expand Down Expand Up @@ -1111,7 +1109,7 @@ def sign_task(task):


def get_time_plus_delta_ts(time, **kwargs):
if isinstance(time, string_types):
if isinstance(time, str):
time = datetime.fromisoformat(time)
return (time + timedelta(**kwargs))

Expand Down

0 comments on commit 072f37c

Please sign in to comment.