Fix merge remanences
This commit is contained in:
parent
98fe69ba62
commit
e140d4a8a7
2 changed files with 2 additions and 13 deletions
|
@ -171,16 +171,6 @@ def generate_partial_history(user, t_start):
|
||||||
basis = generate_first_url(user)
|
basis = generate_first_url(user)
|
||||||
result.append(PartialHistoryEntry(basis, timestamp))
|
result.append(PartialHistoryEntry(basis, timestamp))
|
||||||
t_start += 5 * random.weibullvariate(1, 1.5)
|
t_start += 5 * random.weibullvariate(1, 1.5)
|
||||||
<<<<<<< HEAD
|
|
||||||
output_tree = []
|
|
||||||
crawler = crawl.CrawlingThread(basis, output_tree)
|
|
||||||
crawler.start()
|
|
||||||
crawler.join()
|
|
||||||
urls = crawler.output_tree
|
|
||||||
for url in urls:
|
|
||||||
t_start += 5 * random.weibullvariate(1, 1.5)
|
|
||||||
result.append(PartialHistoryEntry(url.url, timestamp))
|
|
||||||
=======
|
|
||||||
crawler = crawl.CrawlingThread(basis)
|
crawler = crawl.CrawlingThread(basis)
|
||||||
crawler.start()
|
crawler.start()
|
||||||
crawler.join()
|
crawler.join()
|
||||||
|
@ -196,7 +186,6 @@ def generate_partial_history(user, t_start):
|
||||||
timestamp = open_time[parent] + 5 * random.weibullvariate(1, 1.5)
|
timestamp = open_time[parent] + 5 * random.weibullvariate(1, 1.5)
|
||||||
open_time[elem] = timestamp
|
open_time[elem] = timestamp
|
||||||
result.append(PartialHistoryEntry(url, timestamp))
|
result.append(PartialHistoryEntry(url, timestamp))
|
||||||
>>>>>>> Real async crawling
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
@ -257,7 +246,7 @@ def generate_history(user, start_time):
|
||||||
if len(url) < 200:
|
if len(url) < 200:
|
||||||
new_line = HistoryEntry(
|
new_line = HistoryEntry(
|
||||||
search=url,
|
search=url,
|
||||||
timestamp=datetime.fromtimestamp(timestamp), # FIXME tz
|
timestamp=datetime.fromtimestamp(timestamp),
|
||||||
history=history
|
history=history
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -97,7 +97,7 @@ USE_I18N = True
|
||||||
|
|
||||||
USE_L10N = True
|
USE_L10N = True
|
||||||
|
|
||||||
USE_TZ = True
|
USE_TZ = False # We don't really care, we want POSIX timestamps
|
||||||
|
|
||||||
|
|
||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
|
|
Loading…
Reference in a new issue