Skip to content
Snippets Groups Projects
Commit d89b1859 authored by Thomas Jürges's avatar Thomas Jürges
Browse files

SW-382: Replace Python2 integer division (/) with Python3 one (//)

parent f3f726f2
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ class Feedback():
# determine duration in ISO format (couldn't find a nice lib for it)
def __convert_timedelta_to_iso(self, td):
y,w,d,h,m,s = td.days/365, (td.days/7)%365, (td.days/7)%7, td.seconds/3600, (td.seconds/60)%60, td.seconds%60
y,w,d,h,m,s = td.days//365, (td.days//7)%365, (td.days//7)%7, td.seconds//3600, (td.seconds//60)%60, td.seconds%60
duration = 'P{}Y{}M{}DT{}H{}M{}S'.format(y,w,d,h,m,s)
return duration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment