Subversion Repositories SmartDukaan

Rev

Rev 4198 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4198 Rev 5761
Line 6... Line 6...
6
import json
6
import json
7
 
7
 
8
class ScrapedDataManager:
8
class ScrapedDataManager:
9
    
9
    
10
    def __init__(self):
10
    def __init__(self):
11
        self.price_data_file = '/tmp/price-comp-dashboard/primary-crawl.json'
11
        self.price_data_file = '/usr/price-comp-dashboard/primary-crawl.json'
12
        self.price_data = []
12
        self.price_data = []
13
    
13
    
14
    def save(self, price_data):
14
    def save(self, price_data):
15
        self.price_data.extend(price_data)
15
        self.price_data.extend(price_data)
16
    
16