<reponame>ualberta-smr/NFBugs<filename>py-data/plugin.video.arteplussept/problems/api-related/1/correct-usages/get_last7days.py
from xbmcswift2 import Plugin
from xbmcswift2 import actions
import requests
import os
import urllib2
import time
import datetime
  
def get_last7days():
    return flatten([get_day(date) for (date, _) in get_dates()])

from xbmcswift2 import Plugin
from xbmcswift2 import actions
import requests
import os
import urllib2
import time
import datetime
  
def get_last7days():
    return flatten([get_day(date) for (date, _) in get_dates()])