Minor updates to app sdk
This commit is contained in:
@@ -17,6 +17,7 @@ import http.client
|
||||
import urllib.parse
|
||||
import jinja2
|
||||
import datetime
|
||||
import dateutil
|
||||
from io import StringIO as StringBuffer
|
||||
from io import BytesIO
|
||||
from liquid import Liquid, defaults
|
||||
@@ -104,6 +105,18 @@ def base64_decode(a):
|
||||
except:
|
||||
return base64.b64decode(a)
|
||||
|
||||
@shuffle_filters.register
|
||||
def json_parse(a):
|
||||
return json.loads(str(a))
|
||||
|
||||
@shuffle_filters.register
|
||||
def as_object(a):
|
||||
return json.loads(str(a))
|
||||
|
||||
@shuffle_filters.register
|
||||
def ast(a):
|
||||
return ast.literal_eval(str(a))
|
||||
|
||||
#print(standard_filter_manager.filters)
|
||||
#print(shuffle_filters.filters)
|
||||
#print(Liquid("{{ '10' | plus: 1}}", filters=shuffle_filters.filters).render())
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
### DEFAULT
|
||||
NAME=shuffle-app_sdk
|
||||
VERSION=1.0.0
|
||||
VERSION=1.0.1
|
||||
|
||||
docker rmi docker.pkg.github.com/frikky/shuffle/$NAME:$VERSION --force
|
||||
docker build . -f Dockerfile -t frikky/shuffle:app_sdk -t frikky/$NAME:$VERSION -t docker.pkg.github.com/frikky/shuffle/$NAME:$VERSION -t ghcr.io/frikky/$NAME:$VERSION -t ghcr.io/frikky/$NAME:nightly
|
||||
|
||||
@@ -5,3 +5,4 @@ liquidpy==0.7.3
|
||||
flask[async]==2.0.2
|
||||
waitress==2.1.0
|
||||
#flask==1.1.2
|
||||
python-dateutil==2.8.1
|
||||
|
||||
Reference in New Issue
Block a user