Skip to content
Snippets Groups Projects
Commit 03ff2c33 authored by Ronald Jäpel's avatar Ronald Jäpel
Browse files

v0.0.12

parent 9d3d051d
No related branches found
No related tags found
No related merge requests found
......@@ -5,12 +5,14 @@ import sys
import traceback
from datetime import datetime
import shutil
import time
import zipfile
import contextlib
import glob
from stat import S_IREAD, S_IWRITE
from urllib.request import urlretrieve
from ipylab import JupyterFrontEnd
from tabulate import tabulate
import pandas as pd
......@@ -427,6 +429,17 @@ class BaseRepo:
:param add_all:
Option to add all changed and new files to git automatically.
"""
try:
app = JupyterFrontEnd()
print("Saving", end="")
# note: docmanager:save doesn't lock the python thread until saving is completed.
# Sometimes, new changes aren't completely saved before checks are performed.
# Waiting for 0.1 seconds seems to prevent that.
app.commands.execute('docmanager:save')
time.sleep(0.1)
print("")
except:
pass
if not self.exist_uncomitted_changes:
print(f"No changes to commit in repo {self.working_dir}")
return
......
version = "0.0.11"
version = "0.0.12"
[metadata]
name = CADET-RDM
version = 0.0.11
version = 0.0.12
author = Ronald Jäpel
author_email = r.jaepel@fz-juelich.de
description = A solution for research data management
......
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