Add summary and activity screens, remove private datasets from counts
[ckanext-dga-stats.git] / ckanext%2Fdga_stats%2Fstats.pyc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84


ddljZe


c




table_nameR"R$R%R&RR'R(R)R*tGroupR,R-(	R.R&R:RR7R0R;R8t



kr|	S|dkrbg|	D]6\}


package_idR#R!R"R$R%R&RR'R(R)R*tTagR,R-(
R.R&treturned_tag_infoRCRDRRt
tag_columnR7tres_colRFR8tres_tags((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyttop_tagsCs*		Cc




t__name__t



        @param weeks_ago: specify how many weeks ago to give count for
                          (0 = this week so far)

        @param weeks_ago: specify how many weeks ago to give count for
                          (0 = this week so far)



        @return: Returns list of revisions and date of them, in
                 format: [(id, date), ...]


        @return: Returns list of new pkgs and date when they were created, in
                 format: [(id, date_ordinal), ...]



        @return: Returns list of deleted pkgs and date when they were deleted, in
                 format: [(id, date_ordinal), ...]



|d7}ng}








||





date_fieldRkRh(R.(sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pytobjects_by_week&sB	)	s
%s_by_week_%sRzR{(



        @param type: Specifies what to return about the specified week:
                     "package_addition_rate" number of new packages
                     "package_revision_rate" number of package revisions
                     "new_packages" a list of the packages created
                     in a tuple with the date.
                     "deleted_packages" a list of the packages deleted
                     in a tuple with the date.
        @param dates: date range of interest - a tuple:
                     (start_date, end_date)

object_idstobjects_in_a_weekR1((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyRcYs.				



16(RtpylonsRt
sqlalchemyRRRRtckan.pluginstpluginstpt
ckan.modelRttoolkittasboolR,R|Rt	get_cacheRR~RRRBRR_(((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyt<module>s"		h