From 7b7f03a2f307cbc40feb6ad4dafb66155236aa61 Mon Sep 17 00:00:00 2001 From: zeroth Date: Thu, 4 Apr 2019 16:45:56 +0100 Subject: [PATCH] updates for the contextualise --- __pycache__/contextualise.cpython-35.pyc | Bin 3023 -> 3148 bytes contextualise.py | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/__pycache__/contextualise.cpython-35.pyc b/__pycache__/contextualise.cpython-35.pyc index e34a2721bcc8d75b727d22fc3c473afcf63d733e..42e862e6dc6a9f0d7a35d850826671f34d694601 100644 GIT binary patch delta 415 zcmY+9K}!Nb6vyA&nRVS=*EFzI6k0nJYUU+KB0SX5Q+cQ$0&9&jQW+>^%1%VL5H9{_DOo?DQ5ovdGr1=KX@PRIBB_#W6duP4|>rT>w#lf4fz|ct3&+) zE2FUi&>P+6bvWKo6j)!GN5BA6F|z1|L<`DBN`ZM?CQ%n_ n^j5uE=ek&(R7-Z=EK?CMaoJMOdP24Bn!`g{n$t4V`3U|3+$U2Q delta 280 zcmX>jabBEDoR^nt;fJL$*LXK_&1PX_n!Jo=0EmVu#$fgy{Dp&3XrGoMe~5C@6@%_w1INa0~f;ROjdGcpEi@=yN7uE@lqG+BjX(&SSdM;O^A z_j4+67J=NL$ylU2`5>F{15EB$i}MHsQ_&GV=>k^CmCh)?zf7e4e|2mz9l4ngs|srKNco0m?Txf&c&j diff --git a/contextualise.py b/contextualise.py index 9b48d2b..de78577 100644 --- a/contextualise.py +++ b/contextualise.py @@ -29,7 +29,7 @@ listingdirectories = [] #paths jsonfiles = [] #json files thefile = None #selected file for description now = strftime("%Y-%m-%d_%H:%M:%S", gmtime()) #description time -positioninarray = 2 #counter +positioninarray = 8 #counter listofdicts=[] #to be able to import and use json content @@ -87,6 +87,21 @@ def description(): Your browser does not support the audio tag. ''') + #if txtfile + elif thefile.lower().endswith(('.txt')): + # print(thefile) + + with open("static/"+thefile,"r") as f: + path = f.read() + thefile = path + + # yotxt = open(thefile, 'r+') + # thefile = text.read() + # text.close() + + # thefile = Markup('''