Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created July 10, 2016 17:18
Show Gist options
  • Save LarsBergqvist/568fa44367b083408bd299b19200901b to your computer and use it in GitHub Desktop.
Save LarsBergqvist/568fa44367b083408bd299b19200901b to your computer and use it in GitHub Desktop.
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