Skip to content
Snippets Groups Projects
Commit fde069d3 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

STY: ws and comment

parent b37bda6c
No related branches found
No related tags found
1 merge request!22Release 0.3
......@@ -41,11 +41,11 @@ import logging
import re
import warnings
from abc import ABCMeta, abstractmethod
from datetime import datetime
import caosdb as db
from caosdb.exceptions import AmbiguityException, EntityDoesNotExistError
from datetime import datetime
from .datamodel_problems import DataModelProblems
from .guard import global_guard as guard
......@@ -412,6 +412,8 @@ def assure_object_is_in_list(obj, containing_object, property_name,
to_be_updated.append(containing_object)
# TOOD rename to is
# switch arugments and check for old sequence
def assure_has_description(entity, description, to_be_updated=None,
force=False):
"""
......@@ -589,6 +591,7 @@ def assure_has_property(entity, name, value, to_be_updated=None,
# cover special case of datetimes that are returned as strings
# by pylib.
if isinstance(value, datetime):
if datetime.fromisoformat(el.value) == value:
......
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