Skip to content

Commit a2cae43

Browse files
author
Max Base
authored
toFormula()
1 parent 3f09a93 commit a2cae43

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

main.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,16 @@ def removeNoneArrays(array):
161161
data.append(value)
162162
result.append(data)
163163
return result
164+
165+
def toFormula(subscriptionsAll):
166+
if subscriptions == None or len(subscriptions) == 0:
167+
return ""
168+
result=""
169+
170+
for subscription in subscriptionsAll:
171+
# subscription=removeNoneArray(subscription)
172+
# if subscription != None and len(subscription) != 0:
173+
# result+='*'.join(subscription)+'+'
174+
result+='*'.join(subscription)+'+'
175+
176+
return result.rstrip('+')

0 commit comments

Comments
 (0)