test file #3

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

test file

test file
PeterSurda (Migrated from github.com) requested changes 2020-04-29 15:38:10 +02: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 15:32:21 +02: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 15:32:33 +02: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 15:32:39 +02: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 15:32:43 +02: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 15:32:52 +02: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 15:33:03 +02: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 15:33:19 +02: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 15:33:29 +02: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 15:33:42 +02: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 15:33:47 +02: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 15:33:52 +02: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 15:33:56 +02: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 15:34:01 +02: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 15:34:05 +02: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 15:34:11 +02:00

15

15
@ -0,0 +13,4 @@
else:
return str(obj%24)+':00'
PeterSurda (Migrated from github.com) commented 2020-04-29 15:34:19 +02: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 15:34:24 +02: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 15:34:29 +02: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 15:34:35 +02: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 15:34:42 +02: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 15:34:48 +02: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 15:34:54 +02: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 15:34:59 +02: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 15:35:03 +02: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 15:35:08 +02: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 15:35:13 +02: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 15:35:19 +02: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 15:35:24 +02: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 15:35:47 +02: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 15:35:52 +02: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 15:35:56 +02: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 15:36:00 +02: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 15:36:19 +02: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 15:36:23 +02: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 15:36:28 +02:00

35

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

36

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

37

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

38

38
@ -0,0 +36,4 @@
# opt = []
# for obj in objs:
# day_obj = 0
PeterSurda (Migrated from github.com) commented 2020-04-29 15:36:48 +02: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 15:36:53 +02: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 15:36:58 +02: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 15:37:04 +02: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 15:37:09 +02: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 15:37:13 +02: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 15:37:18 +02: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 15:37:23 +02: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 15:37:27 +02: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 15:37:36 +02:00

48

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