Skip to content

Commit

Permalink
fix: javascript php mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Apr 7, 2022
1 parent e0a4a5e commit 82ea703
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions utils/stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function trackMention(string $target, string $source, string $type, strin
public function getSummaryByMonth(int $year, int $month)
{
try {
$month = parseInt($month);
$month = (integer) $month;
$month = $month < 10 ? '0' . $month : $month;

$result = $this->db->query('SELECT COUNT(id) as summary, * FROM webmentions WHERE mention_date LIKE "' . $year . '-' . $month . '-%" GROUP BY mention_type;');
Expand Down Expand Up @@ -114,7 +114,7 @@ public function getDetailsByMonth(int $timestamp)
public function getTargets(int $year, int $month)
{
try {
$month = parseInt($month);
$month = (integer) $month;
$month = $month < 10 ? '0' . $month : $month;

$result = $this->db->query('SELECT mention_target, mention_type, COUNT(mention_type) as mentions FROM webmentions WHERE mention_date LIKE "' . $year . '-' . $month . '-%" GROUP BY mention_target, mention_type;');
Expand Down Expand Up @@ -155,7 +155,7 @@ public function getTargets(int $year, int $month)
public function getSources(int $year, int $month)
{
try {
$month = parseInt($month);
$month = (integer) $month;
$month = $month < 10 ? '0' . $month : $month;

$result = $this->db->query('SELECT mention_source, mention_type, mention_image, COUNT(mention_type) as mentions FROM webmentions WHERE mention_date LIKE "' . $year . '-' . $month . '-%" GROUP BY mention_source, mention_type;');
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php return array(
'root' => array(
'pretty_version' => '1.3.0',
'version' => '1.3.0.0',
'pretty_version' => '1.4.0',
'version' => '1.4.0.0',
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -29,8 +29,8 @@
'dev_requirement' => false,
),
'mauricerenck/indieconnector' => array(
'pretty_version' => '1.3.0',
'version' => '1.3.0.0',
'pretty_version' => '1.4.0',
'version' => '1.4.0.0',
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down

0 comments on commit 82ea703

Please sign in to comment.