# -*- coding: utf-8 -*-
#
-# Copyright (c) 2009-2013, 2019 Jack Kaliko <jack@azylum.org>
+# Copyright (c) 2009-2013, 2019-2020 kaliko <kaliko@azylum.org>
# Copyright (c) 2009, Eric Casteleijn <thisfred@gmail.com>
# Copyright (c) 2008 Rick van Hattem
#
"""
Exceptions.
"""
- pass
class SimaDBAccessError(SimaDBError):
"""Error on accessing DB file"""
- pass
class SimaDBNoFile(SimaDBError):
"""No DB file present"""
- pass
-class SimaDB(object):
+class SimaDB:
"SQLite management"
def __init__(self, db_path=None):
def get_artists_history(self, artists, duration=__HIST_DURATION__):
"""
+ :param list artists: list of object that can evaluate equality with
+ artist name, iterable of str or Artist object
"""
date = datetime.utcnow() - timedelta(hours=duration)
connection = self.get_database_connection()