From 6b692a173291f4f217d99e4f73281bd2b4d1fa1f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 20 May 2014 10:00:48 +0400 Subject: [PATCH] Rename calc_tree to find_tags --- search-tags.py | 4 ++-- tags.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/search-tags.py b/search-tags.py index 27f14f0..afdd6c4 100755 --- a/search-tags.py +++ b/search-tags.py @@ -39,8 +39,8 @@ else: title = "ïÛÉÂËÁ!" body = "ôÅÇ %s ÎÅ ÓÕÝÅÓÔ×ÕÅÔ!" % tag else: # Process tree - from tags import calc_tree - posts = calc_tree(tree) + from tags import find_tags + posts = find_tags(tree) status = None title = "úÁÐÉÓÉ, ÎÁÊÄÅÎÎÙÅ ÄÌÑ ×ÙÒÁÖÅÎÉÑ " + q if posts: diff --git a/tags.py b/tags.py index 35c4634..df64a1c 100644 --- a/tags.py +++ b/tags.py @@ -43,7 +43,7 @@ def _test_post(post, tree): else: raise ValueError("Cannot get there") -def calc_tree(tree): +def find_tags(tree): _posts = [] for (year, month, day), posts in blog_dict.iteritems(): for post in posts: -- 2.39.2