Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getnikola/plugins
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1a816033a48d
Choose a base ref
...
head repository: getnikola/plugins
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 910f8b8b6a35
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on May 27, 2015

  1. Skip scheduled posts and drafts

    da2x committed May 27, 2015
    Copy the full SHA
    3b1e79b View commit details
  2. Dead URL fix

    da2x committed May 27, 2015
    Copy the full SHA
    910f8b8 View commit details
Showing with 8 additions and 6 deletions.
  1. +2 −2 v6/iarchiver/iarchiver.plugin
  2. +3 −1 v6/iarchiver/iarchiver.py
  3. +2 −2 v6/ping/ping.plugin
  4. +1 −1 v6/ping/ping.py
4 changes: 2 additions & 2 deletions v6/iarchiver/iarchiver.plugin
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ Module = iarchiver

[Documentation]
Author = Daniel Aleksandersen
Version = 0.6
Website = https://www.aeyoun.priv.no
Version = 1.0
Website = https://www.aeyoun.com/
Description = Save new posts in the Internet Archives.
4 changes: 3 additions & 1 deletion v6/iarchiver/iarchiver.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

# Copyright © 2013–2014 Daniel Aleksandersen and others.
# Copyright © 2013–2015 Daniel Aleksandersen and others.

# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
@@ -80,6 +80,8 @@ def _execute(self, command, args):
self.logger.info("Beginning submission of archive requests. This can take some time....")

for post in self.site.timeline:
if post.is_draft or post.publish_later:
continue
postdate = datetime.strptime(post.formatted_date("%Y-%m-%dT%H:%M:%S"), "%Y-%m-%dT%H:%M:%S")
postdate_sitetime = self.site.tzinfo.localize(postdate)
postdate_utc = postdate_sitetime.astimezone(dateutil.tz.tzutc())
4 changes: 2 additions & 2 deletions v6/ping/ping.plugin
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ Module = ping

[Documentation]
Author = Daniel Aleksandersen
Version = 0.3
Website = https://www.aeyoun.priv.no
Version = 1.0
Website = https://www.aeyoun.com/
Description = Ping services with updates to the live site
2 changes: 1 addition & 1 deletion v6/ping/ping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

# Copyright © 2013–2014 Daniel Aleksandersen and others.
# Copyright © 2013–2015 Daniel Aleksandersen and others.

# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated