This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, timedelta | |
class Repository: | |
"""Abstract base class for the repositories. | |
The sub classes should implement the get_data method.""" | |
def date_formatted(date): | |
return date.strftime('%d %b %H:%M') | |
def get_data(self,topic_name, numdays): | |
raise NotImplementedError( "Should have implemented this" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment