From 87b1aacb52f0a6b466d61d31ebff7c97a114a885 Mon Sep 17 00:00:00 2001 From: Philip Abbet <philip.abbet@idiap.ch> Date: Tue, 3 Jan 2017 14:40:05 +0100 Subject: [PATCH] [libraries] Fix - Make all libraries considered as valid --- beat/web/libraries/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beat/web/libraries/models.py b/beat/web/libraries/models.py index 2c39ab852..e2ec84b87 100644 --- a/beat/web/libraries/models.py +++ b/beat/web/libraries/models.py @@ -202,6 +202,10 @@ class Library(Code): return super(Library, self).deletable() and ((self.referencing.count() + self.used_by_algorithms.count()) == 0) + def valid(self): + return True # A library (at least for now) is always implemented in Python, + # thus always valid + def core(self): return validate_library(self.declaration) -- GitLab