Skip to content

Commit

Permalink
Merge pull request #150 from true-runes/development
Browse files Browse the repository at this point in the history
v4.2.4
  • Loading branch information
nikukyugamer authored Jun 13, 2021
2 parents c720c62 + 8f76317 commit 5eee301
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/google_sheet_api/write_to_tallied_sheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def nagashikomi(category, tweets_or_dms, target_sheets)

def filtered_direct_messaages
DirectMessage
.extend_valid_term_votes
.only_beginning_valid_term_votes
.to_gensosenkyo_main
.order(messaged_at: :asc)
.order(id_number: :asc)
Expand Down
6 changes: 6 additions & 0 deletions app/models/direct_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ def self.extend_valid_term_votes
where(messaged_at: begin_datetime..end_datetime)
end

def self.only_beginning_valid_term_votes
begin_datetime = Time.zone.parse('2021-06-11 21:00:00')

where(messaged_at: begin_datetime..end_datetime)
end

# gensosenkyo: 1471724029,
# sub_gensosenkyo: 1388758231825018881
def self.from_gensosenkyo_main
Expand Down

0 comments on commit 5eee301

Please sign in to comment.