test file #3

Open
navjotcis wants to merge 1 commits from navjotcis/master into master
navjotcis commented 2020-04-29 10:18:58 +00:00 (Migrated from github.com)

test file

test file
PeterSurda (Migrated from github.com) requested changes 2020-04-29 13:38:10 +00:00
PeterSurda (Migrated from github.com) left a comment

requesting changes

requesting changes
@ -0,0 +1,49 @@
input_val = [[12, 15], [38, 42], [45.50, 47.75]]
PeterSurda (Migrated from github.com) commented 2020-04-29 13:32:21 +00:00

1

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
PeterSurda (Migrated from github.com) commented 2020-04-29 13:32:33 +00:00

2

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
PeterSurda (Migrated from github.com) commented 2020-04-29 13:32:39 +00:00

3

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 = ''
PeterSurda (Migrated from github.com) commented 2020-04-29 13:32:43 +00:00

4

4
@ -0,0 +2,4 @@
# output - Monday 12:00-15:00, Tuesday 14:00-18:00, Tuesday 21:30-23:45
output = ''
PeterSurda (Migrated from github.com) commented 2020-04-29 13:32:52 +00:00

5

5
@ -0,0 +3,4 @@
output = ''
days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
PeterSurda (Migrated from github.com) commented 2020-04-29 13:33:03 +00:00

6

6
@ -0,0 +4,4 @@
output = ''
days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
PeterSurda (Migrated from github.com) commented 2020-04-29 13:33:19 +00:00

7

7
@ -0,0 +5,4 @@
days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
temp_opt = []
PeterSurda (Migrated from github.com) commented 2020-04-29 13:33:29 +00:00

8

8
@ -0,0 +6,4 @@
days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
temp_opt = []
def convert_float(obj):
PeterSurda (Migrated from github.com) commented 2020-04-29 13:33:42 +00:00

9

9
@ -0,0 +7,4 @@
temp_opt = []
def convert_float(obj):
if isinstance(obj, float):
PeterSurda (Migrated from github.com) commented 2020-04-29 13:33:47 +00:00

10

10
@ -0,0 +8,4 @@
temp_opt = []
def convert_float(obj):
if isinstance(obj, float):
flot = str(obj).split('.')
PeterSurda (Migrated from github.com) commented 2020-04-29 13:33:52 +00:00

11

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)
PeterSurda (Migrated from github.com) commented 2020-04-29 13:33:56 +00:00

12

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:
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:01 +00:00

13

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'
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:05 +00:00

14

14
@ -0,0 +12,4 @@
return str(int(flot[0])%24)+':'+str(60*int(flot[1])/100)
else:
return str(obj%24)+':00'
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:11 +00:00

15

15
@ -0,0 +13,4 @@
else:
return str(obj%24)+':00'
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:19 +00:00

16

16
@ -0,0 +14,4 @@
return str(obj%24)+':00'
for objs in input_val:
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:24 +00:00

17

17
@ -0,0 +15,4 @@
for objs in input_val:
if isinstance(objs[0], float) and isinstance(objs[1], float):
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:29 +00:00

18

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()
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:35 +00:00

19

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('.')
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:42 +00:00

20

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))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:48 +00:00

21

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]))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:54 +00:00

22

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]))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:34:59 +00:00

23

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):
PeterSurda (Migrated from github.com) commented 2020-04-29 13:35:03 +00:00

24

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]))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:35:08 +00:00

25

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]))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:35:13 +00:00

26

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):
PeterSurda (Migrated from github.com) commented 2020-04-29 13:35:19 +00:00

27

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]))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:35:24 +00:00

28

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]))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:35:47 +00:00

29

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:
PeterSurda (Migrated from github.com) commented 2020-04-29 13:35:52 +00:00

30

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]))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:35:56 +00:00

31

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]))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:00 +00:00

32

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)
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:19 +00:00

33

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)
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:23 +00:00

34

34
@ -0,0 +32,4 @@
# print(convert_float(objs[0]),convert_float(objs[1]))
print(temp_opt)
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:28 +00:00

35

35
@ -0,0 +33,4 @@
print(temp_opt)
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:33 +00:00

36

36
@ -0,0 +34,4 @@
# opt = []
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:37 +00:00

37

37
@ -0,0 +35,4 @@
# opt = []
# for obj in objs:
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:43 +00:00

38

38
@ -0,0 +36,4 @@
# opt = []
# for obj in objs:
# day_obj = 0
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:48 +00:00

39

39
@ -0,0 +37,4 @@
# opt = []
# for obj in objs:
# day_obj = 0
# if isinstance(obj, float):
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:53 +00:00

40

40
@ -0,0 +38,4 @@
# for obj in objs:
# day_obj = 0
# if isinstance(obj, float):
# flot = str(obj).split('.')
PeterSurda (Migrated from github.com) commented 2020-04-29 13:36:58 +00:00

41

41
@ -0,0 +39,4 @@
# day_obj = 0
# if isinstance(obj, float):
# flot = str(obj).split('.')
# # import pdb;pdb.set_trace()
PeterSurda (Migrated from github.com) commented 2020-04-29 13:37:04 +00:00

42

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))
PeterSurda (Migrated from github.com) commented 2020-04-29 13:37:09 +00:00

43

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:
PeterSurda (Migrated from github.com) commented 2020-04-29 13:37:13 +00:00

44

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')
PeterSurda (Migrated from github.com) commented 2020-04-29 13:37:18 +00:00

45

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
PeterSurda (Migrated from github.com) commented 2020-04-29 13:37:23 +00:00

46

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)]
PeterSurda (Migrated from github.com) commented 2020-04-29 13:37:27 +00:00

47

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)
PeterSurda (Migrated from github.com) commented 2020-04-29 13:37:36 +00:00

48

48
This repo is archived. You cannot comment on pull requests.
No description provided.