Skip to content
Snippets Groups Projects
Commit c311e698 authored by TonyFord's avatar TonyFord
Browse files

updates and bugfixes

parent 529a6a76
No related branches found
No related tags found
No related merge requests found
- https://git.fairkom.net/tonyford/myp2p
- https://git.fairkom.net/fkeim/myp2p
......@@ -42,7 +42,7 @@
</div>
<div class="orderlist-title">
<a href="{{ o.git-repo }}/blob/master/{{ o.order-title }}" target="git-order"><u>{{ o.headline | truncate: 32 }}</u></a> <a href="{{ o.git-profile }}" target="git-profile"><span class="feather-icon icon-user"></span></a> <a href="{{ o.git-repo }}/issues/new?issue[title]={{ o.order-title }}" target="git-contact"><span class="feather-icon icon-mail"></span></a>
<a href="{{ o.git-repo }}/blob/master/{{ o.order-title }}" target="git-order" title="{{ o.git-repo }}/blob/master/{{ o.order-title }}"><u>{{ o.headline | truncate: 32 }}</u></a> <a href="{{ o.git-profile }}" target="git-profile" title="{{ o.git-profile }}"><span class="feather-icon icon-user"></span></a> <a href="{{ o.git-repo }}/issues/new?issue[title]={{ o.order-title }}" title="{{ o.git-repo }}/issues/new?issue[title]={{ o.order-title }}" target="git-contact"><span class="feather-icon icon-mail"></span></a>
<a href="form.html?language-code={{ o.language-code }}&tags={{ o.tags | slice:0,2 | join: ',' }}&bid-ask={{ o.bid-ask }}&headline={{ o.headline | escape }}&condition={{ o.condition }}&description={{ o.description | escape }}&unit={{ o.unit }}&min-size={{ o.min-size }}&max-size={{ o.max-size }}&price-reference={{ o.price-reference | join: ','}}&price-per-unit={{ o.price-per-unit }}"><span class="feather-icon icon-copy"></span></a>
......
......@@ -262,7 +262,18 @@ for source in Pulls:
if( ps == False ):
logme('- order.yml[price-reference] all sources invalid -> SKIP order !')
continue
file = open('../_posts/'+Date + '-' +furl+'.md','w')
orderpaths=[ git_, gituser, gitrepo ]
orderpath='../_posts'
for op in orderpaths:
orderpath+='/' + op
if not os.path.exists(orderpath):
os.makedirs(orderpath)
orderfile= Date + '-' +furl+'.md'
print( orderpath+'/'+orderfile )
file = open(orderpath+'/'+orderfile,'w')
file.write('---\n')
file.write('layout: none\n')
file.write('git-repo: '+source+'\n')
......@@ -271,7 +282,7 @@ for source in Pulls:
file.write('latitude: '+str( O['latitude'] )+'\n' )
file.write('longitude: '+str( O['longitude'] )+'\n' )
file.write('country-code: '+ O['country-code'].upper() +'\n' )
file.write(contents.decode("utf-8"))
file.write(contents.decode("utf-8")+'\n')
file.write('categories: \n')
file.write('- '+ git_ +'\n' )
file.write('- '+ gituser +'\n' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment