Skip to content

Commit

Permalink
Merge pull request #142 from true-runes/development
Browse files Browse the repository at this point in the history
v4.2.1
  • Loading branch information
nikukyugamer authored Jun 12, 2021
2 parents 5cfa058 + 4c82fe9 commit a1d7e52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/lib/google_sheet_api/write_to_tallied_sheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def oshi_serifu_tweets
.order(tweeted_at: :asc)
end

# rubocop:disable Style/RedundantInterpolation
def row_data_for_tweet(tweet)
[
nil, # id
Expand All @@ -131,6 +132,7 @@ def row_data_for_tweet(tweet)
tweet.user.screen_name, # Q列: screen_name を出力する
tweet.user.url, # R列: ユーザーURL
tweet.tweeted_at.strftime('%Y/%m/%d %H:%M:%S'), # S列: ツイート日時
"#{tweet.id_number}", # T列
]
end

Expand All @@ -155,10 +157,11 @@ def row_data_for_dm(dm)
nil, # Q列: 返信したかのチェックをシート操作で入れるので、操作しない
dm.sender.name, # R列
dm.sender.screen_name, # S列
dm.sender.id_number, # T列
"#{dm.sender.id_number}", # T列
dm.messaged_at.strftime('%Y/%m/%d %H:%M:%S'), # U列
]
end
# rubocop:enable Style/RedundantInterpolation

def sheets_in_public_timeline_tweets
[
Expand Down

0 comments on commit a1d7e52

Please sign in to comment.