Minor refactoring of GitCondDB Python helpers

cherry-pick of the part of !1300 (merged) relevant for the master branch

Merge request reports

Loading