fixed conflict

This commit is contained in:
trav 2021-02-07 15:24:40 -05:00
commit 9a8d068e53
2 changed files with 8 additions and 5 deletions

View File

@ -63,8 +63,8 @@ try:
bmp = Image.open(str(flierPath)) bmp = Image.open(str(flierPath))
Limage.paste(bmp) Limage.paste(bmp)
draw = ImageDraw.Draw(Limage) draw = ImageDraw.Draw(Limage)
draw.text((2, 240), 'EBB', font = font18, fill = 255) draw.text((2, 280), 'EBB', font = font18, fill = 255)
draw.text((2, 260), 'version .02', font = font18, fill = 255) draw.text((2, 300), 'version .02', font = font18, fill = 255)
epd.display(epd.getbuffer(Limage)) epd.display(epd.getbuffer(Limage))
time.sleep(2) time.sleep(2)
epd.sleep() epd.sleep()
@ -105,6 +105,7 @@ def button_e(button, pressed):
buttonshim.set_pixel(0x00, 0x00, 0xFF) buttonshim.set_pixel(0x00, 0x00, 0xFF)
button_flag = "button_5" button_flag = "button_5"
buttonshim.set_pixel(0x00, 0x00, 0x00)
buttonshim.set_pixel(0x00, 0x00, 0x00) buttonshim.set_pixel(0x00, 0x00, 0x00)

View File

@ -21,6 +21,7 @@ def main():
def fresh(): def fresh():
print 'refreshing db from ssb'
#get our ssb pub key and db location from config #get our ssb pub key and db location from config
configParser = ConfigParser.RawConfigParser() configParser = ConfigParser.RawConfigParser()
configFilePath = r'config.txt' configFilePath = r'config.txt'
@ -33,6 +34,7 @@ def fresh():
#get time of last db-to-ssb sync from db #get time of last db-to-ssb sync from db
root_entry = db.get(doc_id=1) root_entry = db.get(doc_id=1)
last_run = root_entry["date"] last_run = root_entry["date"]
print 'looking for posts since: ' last_run
#if last run is never ran then only look back 1 month (new installs don't need EVERY old post...) #if last run is never ran then only look back 1 month (new installs don't need EVERY old post...)
if last_run==4: if last_run==4:
@ -89,11 +91,11 @@ def fresh():
except: except:
print 'traceback.format_exc():\n%s' % traceback.format_exc() print 'traceback.format_exc():\n%s' % traceback.format_exc()
exit() exit()
#tru/false: #tru/false whether we have the blob:
newssb=proc.stdout.read() newssb=proc.stdout.read()
print 'do we have the blob? ' newssb
print newssb # if we have it, add it!
if (str(newssb)=='true\n'): if (str(newssb)=='true\n'):
print "yep, we have the blob" print "yep, we have the blob"
#generate unique file_name #generate unique file_name