Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
project
Commits
f3730715
Commit
f3730715
authored
May 04, 2020
by
drumm
Browse files
Issue
#3117465
: Update the project_nid column, too
parent
5be80f75
Changes
1
Hide whitespace changes
Inline
Side-by-side
usage/project_usage.drush.inc
View file @
f3730715
...
...
@@ -183,7 +183,7 @@ function drush_project_usage_import_usage_stats($week) {
// Load in new counts.
$qcount
=
0
;
$query
=
db_insert
(
'project_usage_week_release'
)
->
fields
([
'nid'
,
'timestamp'
,
'count'
]);
->
fields
([
'nid'
,
'project_nid'
,
'timestamp'
,
'count'
]);
foreach
(
$release_counts
as
$project_machine_name
=>
$releases
)
{
foreach
(
$releases
as
$nid
=>
$count
)
{
$qcount
++
;
...
...
@@ -199,7 +199,7 @@ function drush_project_usage_import_usage_stats($week) {
$query
->
execute
();
$qcount
=
0
;
$query
=
db_insert
(
'project_usage_week_release'
)
->
fields
([
'nid'
,
'timestamp'
,
'count'
]);
->
fields
([
'nid'
,
'project_nid'
,
'timestamp'
,
'count'
]);
}
}
if
(
$qcount
)
{
...
...
@@ -253,5 +253,4 @@ function drush_project_usage_import_usage_stats($week) {
drush_log
(
dt
(
"End updating @week tallies on database."
,
array
(
'@week'
=>
$week
)));
project_usage_get_active_weeks
(
TRUE
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment