diff options
Diffstat (limited to 'resumejson_converter/utils')
-rw-r--r-- | resumejson_converter/utils/json.py | 5 | ||||
-rw-r--r-- | resumejson_converter/utils/templates.py | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/resumejson_converter/utils/json.py b/resumejson_converter/utils/json.py index f3ce3d1..77e1312 100644 --- a/resumejson_converter/utils/json.py +++ b/resumejson_converter/utils/json.py @@ -8,6 +8,8 @@ from jsonresume.exceptions import InvalidResumeError class JsonObject(object): """ + Simple JSON object. + All work for this function go to https://dev.to/mandrewcito/nested-json-to-python-object--5ajp """ @@ -27,6 +29,9 @@ class JsonObject(object): def load(json_filepath): + """ + Return a JsonObject from resumejson_converter.utils.json. + """ try: logging.info("JSON parsing...") with open(json_filepath, 'r') as f: diff --git a/resumejson_converter/utils/templates.py b/resumejson_converter/utils/templates.py index b22b4b2..a034103 100644 --- a/resumejson_converter/utils/templates.py +++ b/resumejson_converter/utils/templates.py @@ -2,7 +2,10 @@ def td_format(td_object): """ - based on https://stackoverflow.com/a/13756038 + Return time in `An, Mois, Semaine, Jour, Heure, Minute, Seconde` format. + Only in french. + + Based on https://stackoverflow.com/a/13756038 """ seconds = int(td_object.total_seconds()) periods = [ |