mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Try to fix api.py adddcustomfieldtoboard.
Thanks to xet7 !
This commit is contained in:
parent
d4cbcf1a31
commit
02f056851d
1 changed files with 2 additions and 3 deletions
5
api.py
5
api.py
|
|
@ -6,7 +6,7 @@
|
||||||
# https://github.com/wekan/wekan/wiki/New-card-with-Python3-and-REST-API
|
# https://github.com/wekan/wekan/wiki/New-card-with-Python3-and-REST-API
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# addcustomfieldstoboard: There is error: Settings must be object. So adding does not work yet.
|
# addcustomfieldtoboard: There is error: Settings must be object. So adding does not work yet.
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# python 3
|
# python 3
|
||||||
|
|
@ -176,9 +176,8 @@ if arguments == 10:
|
||||||
boardid = sys.argv[3]
|
boardid = sys.argv[3]
|
||||||
name = sys.argv[4]
|
name = sys.argv[4]
|
||||||
type1 = sys.argv[5]
|
type1 = sys.argv[5]
|
||||||
settings = sys.argv[6]
|
settings = str(json.loads(sys.argv[6]))
|
||||||
# There is error: Settings must be object. So this does not work yet.
|
# There is error: Settings must be object. So this does not work yet.
|
||||||
#settings = json.loads(sys.argv[6])
|
|
||||||
#settings = {'currencyCode': 'EUR'}
|
#settings = {'currencyCode': 'EUR'}
|
||||||
print(type(settings))
|
print(type(settings))
|
||||||
showoncard = sys.argv[7]
|
showoncard = sys.argv[7]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue