mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Fix set parser for python
This commit is contained in:
parent
38507515e8
commit
f2c01a1b85
@ -58,7 +58,10 @@ class exSet(object):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def fromString(string):
|
def fromString(string):
|
||||||
vals = string.split(",")
|
vals = string.split(",")
|
||||||
return exSet(*vals)
|
if len(vals)>1:
|
||||||
|
return exSet(vals[0],int(vals[1]))
|
||||||
|
else:
|
||||||
|
return exSet(vals[0])
|
||||||
|
|
||||||
def getDOI(self):
|
def getDOI(self):
|
||||||
import yaml
|
import yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user