test file #3
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeterSurda/gitea-sqlite-limit#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "navjotcis/master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
test file
requesting changes
@ -0,0 +1,49 @@
input_val = [[12, 15], [38, 42], [45.50, 47.75]]
1
@ -0,0 +1,49 @@
input_val = [[12, 15], [38, 42], [45.50, 47.75]]
# output - Monday 12:00-15:00, Tuesday 14:00-18:00, Tuesday 21:30-23:45
2
@ -0,0 +1,49 @@
input_val = [[12, 15], [38, 42], [45.50, 47.75]]
# output - Monday 12:00-15:00, Tuesday 14:00-18:00, Tuesday 21:30-23:45
3
@ -0,0 +1,49 @@
input_val = [[12, 15], [38, 42], [45.50, 47.75]]
# output - Monday 12:00-15:00, Tuesday 14:00-18:00, Tuesday 21:30-23:45
output = ''
4
@ -0,0 +2,4 @@
# output - Monday 12:00-15:00, Tuesday 14:00-18:00, Tuesday 21:30-23:45
output = ''
5
@ -0,0 +3,4 @@
output = ''
days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
6
@ -0,0 +4,4 @@
output = ''
days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
7
@ -0,0 +5,4 @@
days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
temp_opt = []
8
@ -0,0 +6,4 @@
days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
temp_opt = []
def convert_float(obj):
9
@ -0,0 +7,4 @@
temp_opt = []
def convert_float(obj):
if isinstance(obj, float):
10
@ -0,0 +8,4 @@
temp_opt = []
def convert_float(obj):
if isinstance(obj, float):
flot = str(obj).split('.')
11
@ -0,0 +9,4 @@
def convert_float(obj):
if isinstance(obj, float):
flot = str(obj).split('.')
return str(int(flot[0])%24)+':'+str(60*int(flot[1])/100)
12
@ -0,0 +10,4 @@
if isinstance(obj, float):
flot = str(obj).split('.')
return str(int(flot[0])%24)+':'+str(60*int(flot[1])/100)
else:
13
@ -0,0 +11,4 @@
flot = str(obj).split('.')
return str(int(flot[0])%24)+':'+str(60*int(flot[1])/100)
else:
return str(obj%24)+':00'
14
@ -0,0 +12,4 @@
return str(int(flot[0])%24)+':'+str(60*int(flot[1])/100)
else:
return str(obj%24)+':00'
15
@ -0,0 +13,4 @@
else:
return str(obj%24)+':00'
16
@ -0,0 +14,4 @@
return str(obj%24)+':00'
for objs in input_val:
17
@ -0,0 +15,4 @@
for objs in input_val:
if isinstance(objs[0], float) and isinstance(objs[1], float):
18
@ -0,0 +16,4 @@
for objs in input_val:
if isinstance(objs[0], float) and isinstance(objs[1], float):
# import pdb;pdb.set_trace()
19
@ -0,0 +17,4 @@
for objs in input_val:
if isinstance(objs[0], float) and isinstance(objs[1], float):
# import pdb;pdb.set_trace()
# flot = str(obj).split('.')
20
@ -0,0 +18,4 @@
if isinstance(objs[0], float) and isinstance(objs[1], float):
# import pdb;pdb.set_trace()
# flot = str(obj).split('.')
# opt.append(str(int(flot[0])%24)+':'+str(60*int(flot[1])/100))
21
@ -0,0 +19,4 @@
# import pdb;pdb.set_trace()
# flot = str(obj).split('.')
# opt.append(str(int(flot[0])%24)+':'+str(60*int(flot[1])/100))
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
22
@ -0,0 +20,4 @@
# flot = str(obj).split('.')
# opt.append(str(int(flot[0])%24)+':'+str(60*int(flot[1])/100))
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
23
@ -0,0 +21,4 @@
# opt.append(str(int(flot[0])%24)+':'+str(60*int(flot[1])/100))
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
elif isinstance(objs[0], int) or isinstance(objs[1], float):
24
@ -0,0 +22,4 @@
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
elif isinstance(objs[0], int) or isinstance(objs[1], float):
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
25
@ -0,0 +23,4 @@
# print(convert_float(objs[0]),convert_float(objs[1]))
elif isinstance(objs[0], int) or isinstance(objs[1], float):
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
26
@ -0,0 +24,4 @@
elif isinstance(objs[0], int) or isinstance(objs[1], float):
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
elif isinstance(objs[0], float) or isinstance(objs[1], int):
27
@ -0,0 +25,4 @@
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
elif isinstance(objs[0], float) or isinstance(objs[1], int):
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
28
@ -0,0 +26,4 @@
# print(convert_float(objs[0]),convert_float(objs[1]))
elif isinstance(objs[0], float) or isinstance(objs[1], int):
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
29
@ -0,0 +27,4 @@
elif isinstance(objs[0], float) or isinstance(objs[1], int):
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
else:
30
@ -0,0 +28,4 @@
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
else:
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
31
@ -0,0 +29,4 @@
# print(convert_float(objs[0]),convert_float(objs[1]))
else:
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
32
@ -0,0 +30,4 @@
else:
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
print(temp_opt)
33
@ -0,0 +31,4 @@
temp_opt = '{}-{}'.format(convert_float(objs[0]),convert_float(objs[1]))
# print(convert_float(objs[0]),convert_float(objs[1]))
print(temp_opt)
34
@ -0,0 +32,4 @@
# print(convert_float(objs[0]),convert_float(objs[1]))
print(temp_opt)
35
@ -0,0 +33,4 @@
print(temp_opt)
36
@ -0,0 +34,4 @@
# opt = []
37
@ -0,0 +35,4 @@
# opt = []
# for obj in objs:
38
@ -0,0 +36,4 @@
# opt = []
# for obj in objs:
# day_obj = 0
39
@ -0,0 +37,4 @@
# opt = []
# for obj in objs:
# day_obj = 0
# if isinstance(obj, float):
40
@ -0,0 +38,4 @@
# for obj in objs:
# day_obj = 0
# if isinstance(obj, float):
# flot = str(obj).split('.')
41
@ -0,0 +39,4 @@
# day_obj = 0
# if isinstance(obj, float):
# flot = str(obj).split('.')
# # import pdb;pdb.set_trace()
42
@ -0,0 +40,4 @@
# if isinstance(obj, float):
# flot = str(obj).split('.')
# # import pdb;pdb.set_trace()
# opt.append(str(int(flot[0])%24)+':'+str(60*int(flot[1])/100))
43
@ -0,0 +41,4 @@
# flot = str(obj).split('.')
# # import pdb;pdb.set_trace()
# opt.append(str(int(flot[0])%24)+':'+str(60*int(flot[1])/100))
# else:
44
@ -0,0 +42,4 @@
# # import pdb;pdb.set_trace()
# opt.append(str(int(flot[0])%24)+':'+str(60*int(flot[1])/100))
# else:
# opt.append(str(obj%24)+':00')
45
@ -0,0 +43,4 @@
# opt.append(str(int(flot[0])%24)+':'+str(60*int(flot[1])/100))
# else:
# opt.append(str(obj%24)+':00')
# day_obj = obj%24/24.0
46
@ -0,0 +44,4 @@
# else:
# opt.append(str(obj%24)+':00')
# day_obj = obj%24/24.0
# day_obj = days[int(objs[0]/24)] if isinstance(objs[0], float) else days[int(objs[0]/24)]
47
@ -0,0 +45,4 @@
# opt.append(str(obj%24)+':00')
# day_obj = obj%24/24.0
# day_obj = days[int(objs[0]/24)] if isinstance(objs[0], float) else days[int(objs[0]/24)]
# # print(day_obj)
48