Skip to content

Commit

Permalink
Merge pull request #148 from true-runes/development
Browse files Browse the repository at this point in the history
v4.2.2
  • Loading branch information
nikukyugamer authored Jun 13, 2021
2 parents 6a03db5 + b14ce95 commit c720c62
Show file tree
Hide file tree
Showing 2 changed files with 8 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
.valid_term_votes
.extend_valid_term_votes
.to_gensosenkyo_main
.order(messaged_at: :asc)
.order(id_number: :asc)
Expand Down
7 changes: 7 additions & 0 deletions app/models/direct_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ def self.valid_term_votes
where(messaged_at: begin_datetime..end_datetime)
end

def self.extend_valid_term_votes
begin_datetime = Time.zone.parse('2021-06-11 21:00:00')
end_datetime = Time.zone.parse('2021-06-13 12:59:59')

where(messaged_at: begin_datetime..end_datetime)
end

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

0 comments on commit c720c62

Please sign in to comment.