mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Only list Bitcoin-related events from meetup (fixes #558)
This commit is contained in:
parent
231ee547fa
commit
d27cf78449
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ module Jekyll
|
|||
next if !/^-?[0-9]{1,2}(\.[0-9]{1,15})?$/.match(lat) or ( lat.to_f < -90 and lat.to_f > 90 )
|
||||
next if !/^-?[0-9]{1,3}(\.[0-9]{1,15})?$/.match(lon) or ( lon.to_f < -180 and lon.to_f > 180 )
|
||||
next if lon.to_f == 0 and lat.to_f == 0
|
||||
# Ignore events that don't mention "Bitcoin" in their title
|
||||
next if !/bitcoin/i.match(title)
|
||||
# Format variables
|
||||
time = Time.at((time.to_i + utcoffset.to_i) / 1000)
|
||||
time.utc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue