Skip to content

Commit

Permalink
plugins/insert_image.py: up log
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagnus committed Feb 18, 2022
1 parent 65e5fff commit 947c683
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/plugins/insert_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def insert_image_in_md(text, td, IMG_PREFIX, verbose=False):
changed = True
else:
if verbose:
print('Coping', source_path, td + IMG_PREFIX + t)
print('insert_image.py: coping', source_path, td + IMG_PREFIX + t)
ltext[c] = '![](' + IMG_PREFIX + t + ') '# + creation_date # + t + ')'
changed = True
############################
Expand Down
6 changes: 5 additions & 1 deletion geekbookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from engine.colors import bcolors
from engine.searcher import make_db
from engine.plugins import ia_writer

PINNED_NOTES = ['workflow.md']

class GeekbookError(Exception):
pass
Expand Down Expand Up @@ -67,6 +67,9 @@ def get_files(self):
Update: alwasy get an updated list!"""
self.get_filelist()
self.sort_by_mtime()
self.md_files = PINNED_NOTES + self.md_files
# remove duplicates, if case if the pinned note is alos the recent edit
self.md_files = list(dict.fromkeys(self.md_files))
return self.md_files


Expand Down Expand Up @@ -114,6 +117,7 @@ def start(self):
logger.info('You have %i notes' % len(mf.get_files()) + ' with ' + out + ' lines! Congrats, keep noting!')

index = Index()
print(mf.get_files())
index.update(mf.get_files())

# yappi.start()
Expand Down

0 comments on commit 947c683

Please sign in to comment.